home *** CD-ROM | disk | FTP | other *** search
/ Know Your Baseball - The Greatest Player Resource / Know Your Baseball - Greatest Player.iso / Baseball / Director / KTGCST.CST / 00088_Script_LoadFirstSnd < prev    next >
Text File  |  1998-09-21  |  2KB  |  60 lines

  1. Global AnnSnd,CoachSnd
  2.  
  3. -- reloads initsound when background is clicked
  4. on loadFirstSoundsbg
  5.   --  find the first sound maker in the internal cast
  6.   set start = the number of member "IntroSnd"
  7.   if start = -1 then exit -- put in to bail while authoring
  8.   set AnnSnd = the name of member (start+1) of castlib "internal"
  9.   set CoachSnd = the name of member (start+2) of castlib "internal"
  10.   -- remove the next lines after all the sound is in
  11.   -- this line bails if no sound files are present
  12. end
  13.  
  14. -- commented out to prevent scripts errors in incomplete movies
  15. on loadFirstSounds myname
  16.   puppetsound 0
  17.   updatestage
  18.   --  find the first sound maker in the internal cast
  19.   set start = the number of member "IntroSnd"
  20.   if start = -1 then exit -- put in to bail while authoring
  21.   set AnnSnd = the name of member (start+1) of castlib "internal"
  22.   set CoachSnd = the name of member (start+2) of castlib "internal"
  23.   -- remove the next lines after all the sound is in
  24.   -- this line bails if no sound files are present
  25.   
  26.   case  myname of
  27.     "coach":
  28.       set the membernum of sprite 41 = the membernum of sprite 41+1
  29.       set the blend of sprite 41 = 100
  30.       setat(gbuttonState,41,2)
  31.       puppetsound CoachSnd
  32.       updatestage
  33.     "guide":
  34.       set the membernum of sprite 40 = the membernum of sprite 40+1
  35.       set the blend of sprite 40 = 100
  36.       setat(gbuttonState,40,2)
  37.       puppetsound AnnSnd
  38.       updatestage
  39.   end case
  40. end
  41.  
  42. on loadFirstSoundst mysprite
  43.   if voidp(mysprite) then
  44.     set s = the clickon
  45.     set mynum = the membernum of sprite s
  46.     set mysprite = the name of member mynum of castlib "KTGCST"
  47.   end if
  48.   set makername = the number of member (mysprite & "_audio")
  49.   if makername = -1 then exit -- put in to bail while authoring
  50.   set AnnSnd = the name of member (makername+1) of castlib "internal"
  51.   set CoachSnd = the name of member (makername+2) of castlib "internal"
  52.   if mysprite = "A" or mysprite = "D" then exit -- don't auto play sound if you are in teamplay
  53.   set the membernum of sprite 40 = the membernum of sprite 40+1
  54.   set the blend of sprite 40 = 100
  55.   setat(gbuttonState,40,2)
  56.   puppetsound AnnSnd
  57.   updatestage
  58. end
  59.  
  60.